*Running this do file replicates all published results

*A data dictionary is included as "data dictionary.pdf"

*Necessary data files include:
*-phillips_jhr_cleandata - output of step 1
*-acs, acs_2015_poverty, and acs_poverty - American Community Survey variables
*-census_gazetteer - other tract characteristics from Gazetteer
*-avg_dist - average distance measure by census tract
*-avgdist_app_tojob - average distance measure by job applicant
*-dctracts, dctracts-coord - mapping files created from shape files
*-tl_2010_11001_tract10... - original shape files for mapping
*-LEHD data and replication data from Bertrand and Mullainathan not included (but publicly available elsewhere; see below)


global maindir  ENTER THE DIRECTORY HOLDING REPLICATION FILES HERE
cd "$maindir" 


*data cleaning using identifiable data 
	*Requires - NOT PUBLICLY AVAILABLE
	*this do file cannot be run by replicators but is provided for interpretation of the processed data, phillips_jhr_cleandata.dta
	*comment out this do file when running code for replication to start at step 2
*do 1_deidentifying.do


*results and figures using LEHD data 
	*- first download LEHD data from https://lehd.ces.census.gov/data/
do 2_context.do


*tables discussing baseline balance and treatment assignment 
	*- first download Bertrand and Mullainathan replication data from https://www.aeaweb.org/articles?id=10.1257/0002828042002561
do 3_treatassign.do


*making main results tables and figures
do 4_results.do


